import request from './request.js';
let service = request.service;
let download = request.download;
export default {
    login(data) {
        return service({
            url: `/authentication/form`, //登录接口
            method: 'post',
            params: data
        })
    },
    loginOut() {
        return service({
            url: `/adscm/logout`, //退出登录
            method: 'get'
        })
    },
    /** 缔造价值-start*/
    //获取任务执行部门列表
    selectDepts(){
        return service({
            url: `/adscm/operation/taskManager/selectDepts`, 
            method: 'get'
        })
    },
    //根据部门id，获取任务执行人列表
    taskPerformPerson(id){
        return service({
            url: `/adscm/operation/taskManager/selectTaskPerformPerson/${id}`, 
            method: 'get'
        })
    },
    getMyTaskManager(type,data) {
        return service({
            url: `/adscm/operation/taskManager/selectMyTaskManager/${type}`, //获取我的任务列表 0-待办交办任务，1-已办交办任务
            method: 'post',
            data
        })
    },
    assignmentList(){
        return service({
            url: `/adscm/operation/taskManager/selectTaskManager`, //获取下发交办任务列表
            method: 'get'
        })
    },
    taskManagerdetail(id){
        return service({
            url: `/adscm/operation/taskManagerdetail/selectByTid/${id}`, /**获取任务过程列表 */
            method: 'get'
        })
    },
    addUpdateTast(type,data){
        return service({
            url: `/adscm/operation/taskManager/${type}`, //type: insert-新增任务 update-修改任务
            method: 'post',
            data
        })
    },
    deleteTaskDetail(id) {
        return service({
            url: `/adscm/operation/taskManagerdetail/delete/${id}`, //删除任务过程
            method: 'get'
        })
    },
    addUpdateTastDetail(type,data){
         return service({/**新增修改任务过程信息 */
             url: `/adscm/operation/taskManagerdetail/${type}`, //type: insert-新增任务过程 update-修改任务过程
             method: 'post',
             data
        })
    },
    userList(){
        return service({
            /**PE知识库创建人列表 */
            url: `/adscm/pebase/peDiseaseType/selectUsers`,
            method: 'get'
        })
    },
    PEList(data){
        return service({
            /**PE知识库列表 */
            url: `/adscm/pebase/peDiseaseType/select`,
            method: 'post',
            data,
        })
    },
    addUpdatePeDisease(type, data) {
        return service({
            /**新增修改PE知识库 */
            url: `/adscm/pebase/peDiseaseType/${type}`, //type: insert-新增PE知识库 update-修改pe知识库
            method: 'post',
            data
        })
    },
    deletePeDisease(id){
        return service({
            url: `/adscm/pebase/peDiseaseType/delete/${id}`, /**删除PE知识库 */
            method: 'post'
        })
    },
    peDocument(data) {
         return service({
             url: `/adscm/pebase/peDocument/insert`,
             /**原文献上传*/
             method: 'post',
             data
         }, 'upload')
    },
    literatureList(data) {
        return service({
            url: `/adscm/pebase/peDocument/selectByDid`,
            /**获取文献列表 */
            method: 'post',
            data
        })
    },
    literatureListByLabels(data) {
        return service({
            url: `/adscm/pebase/peDocumentLabel/selectDocumentByLabels`,
            /**根据标签查询原文献列表 */
            method: 'post',
            data
        })
    },
    deteleLiterature(id) {
        return service({
            url: `/adscm/pebase/peDocument/delete/${id}`,
            /**删除文献*/
            method: 'post'
        })
    },
    literatureDownload(id){//原文献下载
        return download({
            url: `/adscm/pebase/peDocument/download/${id}`
        })
    },
    abstractList(data){
        /**文献摘要列表*/
        return service({
            url: `/adscm/pebase/peAbstractContent/selectByDid`,
            method: 'post',
            data
        })
    },
    addAbstract(type,data){
        /**新增或修改文献摘要*/
        return service({
            url: `/adscm/pebase/peAbstractContent/${type}`,
            method: 'post',
            data
        })
    },
    deleteAbstract(id){
        return service({
            url: `/adscm/pebase/peAbstractContent/delete/${id}`,
            /**删除文献摘要*/
            method: 'post'
        })
    },
    /**摘要关联文献接口 */
    contentAbstractInfo(data){
        return service({
            url: `/adscm/pebase/peDocumentAbstract/insert`,
            method: 'post',
            data
        })
    },

    /**摘要关联文献列表接口 */
    abstractInfoList(aid) {
        return service({
            url: `/adscm/pebase/peDocumentAbstract/selectDocumentByAid/${aid}`,
            method: 'post',
        })
    },
    deleteAbstractLiterature(id) {
        return service({
            url: `/adscm/pebase/peDocumentAbstract/delete/${id}`,
            /**摘要文献删除关联文献*/
            method: 'post'
        })
    },
    /**标签关联接口 */
    tagList() {
       return service({
           url: `/adscm/pebase/peLabel/select`,
           /**获取标签列表*/
           method: 'post'
       })
    },
    addUpdateTag(type,data){
        return service({
            url: `/adscm/pebase/peLabel/${type}`,
            /**新增或修改标签 insert-新增，update-修改*/
            method: 'post',
            data
        })
    },
    tagDelete(id){
        return service({
            url: `/adscm/pebase/peLabel/delete/${id}`,
            /**获取所有标签列表*/
            method: 'post'
        })
    },
    addRelationTag(data){
        return service({
            url: `/adscm/pebase/peDocumentLabel/insert`,
            /**原文献新增关联标签*/
            method: 'post',
            data
        })
    },
    relationTagList(did) {
        return service({
            url: `/adscm/pebase/peDocumentLabel/selectLabelsByDid/${did}`,
             /**根据原文献id获取已关联标签列表*/
            method: 'post'
        })
    },
    deteteRelationTag(id) {
        return service({
            url: `/adscm/pebase/peDocumentLabel/delete/${id}`,
            /**解除已关联标签*/
            method: 'post'
        })
    },
    fileDetail(fileId) {
        return service({
            url: `//adscm/zltx/sjFile/selectByFileId/${fileId}`,
            /**三级文件-根据文献ID查看文献详情*/
            method: 'get'
        })
    },
    sjFileUserAllUser() {
         return service({
             url: `/adscm/zltx/sjFileUser/selectAllUsers`,
             /**三级文件配置-获取所有用户*/
             method: 'get'
         })
    },
    sjFileAllTree(data){
        return service({
            url: `/adscm/zltx/sjFileUser/selectSjFileTree`,
            /**三级文件配置-获取所以的文件树*/
            method: 'get',
            params:data
        })
    },
    userTree(id) {
        return service({
            url: `/adscm/zltx/sjFileUser/selectSjFileTreeByUser/${id}`,
            /**三级文件配置-获取用户能编辑的三级文件*/
            method: 'get'
        })
    },
    sjFileUserEditTree(data) {
        return service({
            url: `/adscm/zltx/sjFileUser/insert`,
            /**三级文件配置-修改用户文件树*/
            method: 'post',
            data
        })
    },
    supplierList(data) {
        return service({
            url: `/adscm/operation/supplier/queryByPage`,
            /**供应商基础信息列表*/
            method: 'get',
            params: data
        })
    },
    idImgUpload() {
        /**图片上传 */
        return download({
            url: '/adscm/operation/filesystem/upload'
        })
    },
    addUpdateSupplier(type,data) {
        return service({
            url: `/adscm/operation/supplier/${type}`,
            /**供应商基础信息新增-insert 修改-update*/
            method: 'post',
            data
        })
    },
    deleteSupplier(data) {
        return service({
            url: `/adscm/operation/supplier/delete`,
            /**供应商基础信息新增-insert 修改-update*/
            method: 'get',
            params:data
        })
    },

    /**123545查询树结构 */
    xjFileTreeList(){
        return service({
            url: `/adscm/operation/xjfile/xjFile/selectAll`,
            method: 'post'
        })
    },
     /**123545 新增树-insert 编辑树-update*/
     addUpdateTree(type,data) {
         return service({
             url: `/adscm/operation/xjfile/xjFile/${type}`,
             method: 'post',
             data
         })
     },
      /**根据Id查询选中的树*/
     treeById(id) {
         return service({
             url: `/adscm/operation/xjfile/xjFile/selectById/${id}`,
             method: 'post',
         })
     },
     /**123545所有树菜单*/
     getAllTreeMenu(){
        return service({
            url: `/adscm/operation/xjfile/xjFile/selectByName`,
            method: 'get',
        })
    },
     xjAttachmentList(type, xid) {
         return service({
             url: `/adscm/operation/xjfile/xjAttachment/selectByXid/${xid}/${type}`,
             method: 'post',
         })
     },
     xjAttachmentUpload(data){
         return service({
             url: `/adscm/operation/xjfile/xjAttachment/upload`,
             /**123545附件上传*/
             method: 'post',
             data
         }, 'upload')
     },
     xjAttachmentDownload(id) { //123545附件下载
         return download({
             url: `/adscm/operation/xjfile/xjAttachment/download/${id}`
         })
     },
    addUpdatemAchinetypeConfig(type,data){
        /**机器型号配置单新增-insert 修改-update*/
        return service({
            url: `/adscm/operation/purchasebom/${type}`,
            method: 'post',
            data
        })
    },
    deleteAchinetypeConfig(data){
        /**机器型号配置单删除*/
        return service({
            url: `/adscm/operation/machinetype/delete`,
            method: 'get',
            data
        })
    },
     machineTypeCode(type) {
         /**机器型号配置单  码表*/
         /**4-机器型号
          * 5-发票类型
          * 6-付款方式
          * 7-运输方式
          */
         return service({
             url: `/adscm/operation/machinetype/queryByMachineType/${type}`,
             method: 'get',
         })
     },
     bomTree(data){

     },
     bomList(data){
        /**查询bom列表 key-可选参数传模糊查询不传查所有*/
          return service({
              url: `/adscm/operation/machinetype/queryByBom`,
              method: 'get',
              params:data
          })
     },
     allbomList(){
         return service({
             url: `/adscm/operation/bomandsupplier/queryByBom`,
             method: 'get'
         })
     },
     allSupplierList(){
        /**查询所有供应商列表*/
        return service({
            url: `/adscm/operation/supplier/query`,
            method: 'get',
        })
     },
     machinetypeBom(data){
         /**查询机器型号配置单列表*/
         return service({
             url: `/adscm/operation/purchasebom/queryByPid`,
             method: 'get',
             params:data
         })
     },
     bomandsupplierList(data){
          /**获取供应商与bom列表*/
         return service({
             url: `/adscm/operation/bomandsupplier/queryByPage`,
             method: 'get',
             params: data
         })
     },
     addUpdateBomSupplier(type,data){
         /**bom和供应商 新增-insert，修改-update*/
        return service({
            url: `/adscm/operation/bomandsupplier/${type}`,
            method: 'post',
            data
        })
     },
    deleteBomSupplier(data) {
        /**bom和供应商 删除*/
        return service({
            url: `/adscm/operation/bomandsupplier/delete`,
            method: 'get',
            params: data
        })
    },
    materialQueryByPage(data){
        return service({
            url: `/adscm/operation/bom/queryByPage`,
            /**供应商基础信息列表*/
            method: 'get',
            params: data
        })
    },
    addOrUpdateBom(type,data){
        /**bom和供应商 新增-insert，修改-update*/
       return service({
           url: `/adscm/operation/bom/${type}`,
           method: 'post',
           data
       })
    },
    deletematerial(id) {
        /**bom和供应商 删除*/
        return service({
            url: `/adscm/operation/bom/delete/${id}`,
            method: 'get',
        })
    },
    purchasePlanList(data){
        /**采购计划列表*/
        return service({
            url: `/adscm/operation/machinetype/queryByPlan`,
            method: 'get',
            params:data
        })
    },
     createPurchasePlan(data) {
         /**采购计划创建*/
         return service({
             url: `/adscm/operation/machinetype/createPlan`,
             method: 'post',
             data
         })
     },
     updatePurchasePlan(data) {
         /**采购计划修改*/
         return service({
             url: `/adscm/operation/machinetype/updateByPlan`,
             method: 'post',
             data:data
         })
     },
     //部装基础配置 新增-insert 修改-update
     addUpdatePartsConfig(type,data){
        return service({
            url: `/adscm/operation/jqbzSettings/${type}`,
            method: 'post',
            data: data
        })
    },
    //部装基础配置 新增-insert 修改-update
    partsConfigList(data){
        return service({
            url: `/adscm/operation/jqbzSettings/selectAll`,
            method: 'post',
            data: data
        })
    },
    partsConfig(id){
        return service({
            url: `/adscm/operation/jqbzSettings/selectById/${id}`,
            method: 'get'
        })
    },

    addSpareParts(data){
        /**新增零件-insert,*/
        return service({
            url: `/adscm/operation/jqbzSettingsInput/insert`,
            method: 'post',
            data
        })
    },
    deleteSpareParts(id){
         /**删除零件-delete */
         return service({
             url: `/adscm/operation/jqbzSettingsInput/delete/${id}`,
             method: 'post'
         })
    },
    sparePartsList(pid) {
        /**部件关联的零件信息 */
        return service({
            url: `/adscm/operation/jqbzSettingsInput/selectByPid/${pid}`,
            method: 'post'
        })
    },
    allTechnicalStandard(){/**获取所有技术标准列表 */
         return service({
             url: `/adscm/operation/jqbzSettingTechs/selectAll`,
             method: 'post'
         })
    },
    technicalStandard(pid) {
        /**获取技术标准列表 */
        return service({
            url: `/adscm/operation/jqbzSettingTechs/selectBybid/${pid}`,
            method: 'post'
        })
    },
    updataTechnicalStandard(data){
        /**修改技术标准配置 */
        return service({
            url: `/adscm/operation/jqbzSettingTechs/insert`,
            method: 'post',
            data
        })
    },
    allSOP() {
        /**获取所有SOP*/
        return service({
            url: `/adscm/operation/jqbzSettingsSop/selectAll`,
            method: 'post'
        })
    },
    SOPList(pid) {
        /**获取部件的SOP */
        return service({
            url: `/adscm/operation/jqbzSettingsSop/selectBybid/${pid}`,
            method: 'post'
        })
    },
    updataSOP(data) {
        /**修改SOP配置 */
        return service({
            url: `/adscm/operation/jqbzSettingsSop/insert`,
            method: 'post',
            data
        })
    },
    addUpdataBZtask(type,data) {
          /**发放机器部装任务 insert-发放任务，update-修改任务*/
          return service({
              url: `/adscm/operation/jqbzPartsassembly/${type}`,
              method: 'post',
              data
          })
    },


    selectJqMbParts(){
        /**获取所有部装产品*/
        return service({
            url: `/adscm/operation/jqbzSettings/select`,
            method: 'post'
        })
    },

    selectJqbzPartsassembly(data){
         /**获取部装任务列表 0/0/0-待办部装任务，1/0/0-进行中部装任务，1/1/0-待复机部装任务 1/1/1-已办部装任务*/
         return service({
             url: `/adscm/operation/jqbzPartsassembly/selectJqbzPartsassembly`,
             method: 'post',
             data
         })
    },
    inputMaterielList(tid){
        /**获取输入物料列表*/
        return service({
            url: `/adscm/operation/jqbz/jqbzMaterial/selectByTid/${tid}`,
            method: 'post'
        })
    },
    materieListStore(id){
         /**获取库存中的原料*/
         return service({
             url: `/adscm/operation/jqbz/jqbzMaterialList/queryMaterial/${id}`,
             method: 'post'
         })
    },
    selectMaterieList(tid) {
         /**获取已选择库存中的原料*/
         return service({
             url: `/adscm/operation/jqbz/jqbzMaterialList/selectByTid/${tid}`,
             method: 'post'
         })
    },
addMaterieStore(data) {
     /**获取已选择库存中的原料*/
     return service({
         url: `/adscm/operation/jqbz/jqbzMaterialList/insert`,
         method: 'post',
         data
     })
},
   assemblyList(pid) {
        /**获取装配信息记录*/
        return service({
            url: `/adscm/operation/jqbz/jqbzAssembly/selectByPid/${pid}`,
            method: 'post'
        })
   },
   updateAssembly(data) {
        /**获取装配信息记录*/
        return service({
            url: `/adscm/operation/jqbz/jqbzAssembly/update`,
            method: 'post',
            data
        })
   },
   resultList(pid){
        /**获取结果输出列表*/
        return service({
            url: `/adscm/operation/jqbz/jqbzResult/selectByPid/${pid}`,
            method: 'post'
        })
   },
   addUpdateReult(type, data) {
        /**新增修改结果输出列表*/
        return service({
            url: `/adscm/operation/jqbz/jqbzResult/${type}`,
            method: 'post',
            data
        })
   },
   processConfigList(pid) {
    /** 获取过程信息配置列表*/
         return service({
             url: `/adscm/operation/jqbzSettingProecss/selectByPid/${pid}`,
             method: 'post',
         })
   },
   addUpDateProcessConfig(type,data){
     /**新增修改过程信息配置 insert-新增 update-修改*/
     return service({
         url: `/adscm/operation/jqbzSettingProecss/${type}`,
         method: 'post',
         data
     })
   },
   checkoutList(pid) {
        /**部装出库记录*/
        return service({
            url: `/adscm/operation/jqbz/jqbzPartsUseHistory/selectByPid/${pid}`,
            method: 'post'
        })
    },
   delateMaterie(id){/**删除物料 */
    return service({
        url: `/adscm/operation/jqbz/jqbzMaterialList/delete/${id}`,
        method: 'post'
    })
   },
   materialListCheck(id){/**获取物料检测信息 */
       return service({
           url: `/adscm/operation/jqbz/jqbzMaterialListCheck/selectByPid/${id}`,
           method: 'post'
       })
   },
    updateMaterialCheck(data) {
        /**获取物料检测信息 */
        return service({
            url: `/adscm/operation/jqbz/jqbzMaterialListCheck/update`,
            method: 'post',
            data
        })
    },
    addUpdateZzSetting(type, data) {
         /**总装配置表 添加-insert 修改-update */
         return service({
             url: `/adscm/operation/jqzz/jqzzSetting/${type}`,
             method: 'post',
             data
         })
    },
    zzSettingList(data) {
         /**总装配置表列表*/
         return service({
             url: `/adscm/operation/jqzz/jqzzSetting/selectAll`,
             method: 'post',
             data
         })
    },
    selectMachine(){
        /**获取总装的所有类型*/
        return service({
            url: `/adscm/operation/jqzzMachine/selectMachine`,
            method: 'get'
        })
    },
    zzInputMaterielList(pid) {
        /**获取总装添加的物料列表*/
        return service({
            url: `/adscm/operation/jqzz/jqzzSettingInput/selectByPid/${pid}`,
            method: 'get'
        })
    },

    addZzParts(data) {
         /**新增-insert 总装配置部件*/
         return service({
             url: `/adscm/operation/jqzz/jqzzSettingParts/insert`,
             method: 'post',
             data
         })
    },
    deleteParts(id) {
         /**删除 总装配置部件*/
         return service({
             url: `/adscm/operation/jqzz/jqzzSettingParts/delete/${id}`,
             method: 'post'
         })
    },
    zzInputPartsList(pid) {
        /**获取总装部件列表*/
        return service({
            url: `/adscm/operation/jqzz/jqzzSettingParts/selectByPid/${pid}`,
            method: 'get'
        })
    },
    addInputMaterie(data){
        /**新增-insert 总装配置物料*/
        return service({
            url: `/adscm/operation/jqzz/jqzzSettingInput/insert`,
            method: 'post',
            data
        })
    },
    deleteInputMaterie(id) {
         /**删除 总装配置物料*/
         return service({
             url: `/adscm/operation/jqzz/jqzzSettingInput/delete/${id}`,
             method: 'post'
         })
    },
    zzAllTechnicalStandard() {
        /**获取所有技术标准列表 */
        return service({
            url: `/adscm/operation/jqzz/jqzzSettingTechs/selectAll`,
            method: 'post'
        })
    },
    zzTechnicalStandard(pid) {
             /**获取技术标准列表 */
             return service({
                 url: `/adscm/operation/jqzz/jqzzSettingTechs/selectBybid/${pid}`,
                 method: 'post'
             })
         },
    zzUpdataTechnicalStandard(data) {
        /**修改技术标准配置 */
        return service({
            url: `/adscm/operation/jqzz/jqzzSettingTechs/insert`,
            method: 'post',
            data
        })
    },
    zzAllSOP() {
        /**获取所有SOP*/
        return service({
            url: `/adscm/operation/jqzz/jqzzSettingSop/selectAll`,
            method: 'post'
        })
    },
    zzSOPList(pid) {
        /**获取部件的SOP */
        return service({
            url: `/adscm/operation/jqzz/jqzzSettingSop/selectBybid/${pid}`,
            method: 'post'
        })
    },
    zzUpdataSOP(data) {
        /**修改SOP配置 */
        return service({
            url: `/adscm/operation/jqzz/jqzzSettingSop/insert`,
            method: 'post',
            data
        })
    },
    zzProcessList(pid) {
        /** 总装过程记录配置列表*/
        return service({
            url: `/adscm/operation/jqzz/jqzzSettingProcess/selectByPid/${pid}`,
            method: 'post'
        })
    },
    addUpdateProcess(type,data){
         /** 总装过程记录配置 新增-insert update-修改*/
         return service({
             url: `/adscm/operation/jqzz/jqzzSettingProcess/${type}`,
             method: 'post',
             data
         })
    },
    addAssignment(data){
         /** 发放总装任务*/
         return service({
             url: `/adscm/operation/jqzzMachine/insert`,
             method: 'post',
             data
         })
    },
    updateAssignment(data) {
        /** 发放总装任务*/
        return service({
            url: `/adscm/operation/jqzzMachine/update`,
            method: 'post',
            data
        })
    },
    zzAssignmentList(data) {
            /**获取任务列表 */
        return service({
            url: `/adscm/operation/jqzzMachine/selectjqzzMachine`,
            method: 'post',
            data
        })
    },
    managersList(){/**获取任务负责人列表 */
        return service({
            url: `/adscm/operation/jqzzMachine/selectTaskPerformPerson`,
            method: 'post'
        })
    },
    zzMaterieList(tid) {
            /**总装任务-物料列表 */
        return service({
            url: `/adscm/operation/jqzz/jqzzMaterial/selectByTid/${tid}`,
            method: 'post'
        })
    },
    storeMaterialList(id) {
            /**总装任务-库存中物料列表 */
        return service({
            url: `/adscm/operation/jqzz/jqzzMaterialList/queryMaterial/${id}`,
            method: 'post'
        })
    },
    zzInsertMaterial(data){
         /**总装任务-物料下账 */
         return service({
             url: `/adscm/operation/jqzz/jqzzMaterialList/insert`,
             method: 'post',
             data
         })
    },
    zzSelectMaterial(tid) {
         /**总装任务-已下账物料列表 */
         return service({
             url: `/adscm/operation/jqzz/jqzzMaterialList/selectByTid/${tid}`,
             method: 'post'
         })
     },
     deleteZzMaterial(id) {
         /**总装任务-删除物料*/
         return service({
             url: `/adscm/operation/jqzz/jqzzMaterialList/delete/${id}`,
             method: 'post'
         })
     },
    checkZzMaterialInfo(pid) {
        /**总装任务-物料检验信息 */
        return service({
            url: `/adscm/operation/jqzz/jqzzMaterialListCheck/selectByPid/${pid}`,
            method: 'post'
        })
    },
    updataCheckZzMaterial(data) {
        /**总装任务-修改物料检验信息 */
        return service({
            url: `/adscm/operation/jqzz/jqzzMaterialListCheck/update`,
            method: 'post',
            data
        })
    },
    zzPartsList(tid) {
         /**总装任务-部件列表 */
        return service({
            url: `/adscm/operation/jqzz/jqzzPartsMaterial/selectByTid/${tid}`,
            method: 'post'
        })
    },
     storePartsList(id) {
         /**总装任务-库存中部件列表 */
         return service({
             url: `/adscm/operation/jqzz/jqzzPartsMaterialList/queryMaterial/${id}`,
             method: 'post'
         })
     },
    zzInsertParts(data) {
          /**总装任务-部件下账 */
          return service({
              url: `/adscm/operation/jqzz/jqzzPartsMaterialList/insert`,
              method: 'post',
              data
          })
    },
    zzSelectParts(tid) {
        /**总装任务-已下账物料列表 */
        return service({
            url: `/adscm/operation/jqzz/jqzzPartsMaterialList/selectByTid/${tid}`,
            method: 'post'
        })
    },
    deleteZzParts(id) {
        /**总装任务-删除部件 */
        return service({
            url: `/adscm/operation/jqzz/jqzzPartsMaterialList/delete/${id}`,
            method: 'post'
        })
    },
    checkPartsInfo(pid) {
        /**总装任务-部件检验信息 */
        return service({
            url: `/adscm/operation/jqzz/jqzzPartsMaterialListCheck/selectByPid/${pid}`,
            method: 'post'
        })
    },
    updataCheckParts(data){
        /**总装任务-修改部件检验信息 */
        return service({
            url: `/adscm/operation/jqzz/jqzzPartsMaterialListCheck/update`,
            method: 'post',
            data
        })
    },
    zzAssembly(pid) {
         /**总装任务-过程信息记录 */
         return service({
             url: `/adscm/operation/jqzz/jqzzAssembly/selectByPid/${pid}`,
             method: 'post'
         })
    },
    zzAssemblyUpdate(data) {
        /**总装任务-过程信息记录修改 */
        return service({
            url: `/adscm/operation/jqzz/jqzzAssembly/update`,
            method: 'post',
            data
        })
    },
    jqzzResultList(pid) {
         /**总装任务-结果查询列表 */
        return service({
            url: `/adscm/operation/jqzz/jqzzResult/selectByPid/${pid}`,
            method: 'post'
        })
    },
    addUpdateJqzzResult(type, data) {
        /**总装任务-结果 添加-insert 修改-update */
        return service({
            url: `/adscm/operation/jqzz/jqzzResult/${type}`,
            method: 'post',
            data
        })
    },
    noMarerialCheckInfo(id) {
        /**不合格原料 检验记录 */
        return service({
            url: `/adscm/operation/jqylMaterialdetail/selectUnqualifiedMaterialCheck/${id}`,
            method: 'post'
        })
    },
    selectUnqualifiedParts(data) {
        /**不合格部件 */
        return service({
            url: `/adscm/operation/jqbzPartsassembly/selectUnqualifiedParts`,
            method: 'post',
            data
        })
    },
    checkOutCheackInfo(pid) {
         /**不合格部件 */
         return service({
             url: `/adscm/operation/jqzz/jqzzPartsMaterialListCheck/selectByPid/${pid}`,
             method: 'post'
         })
    },
     materialCheckedList(pid) {
         /**原料列表检验信息列表 */
         return service({
             url: `/adscm/operation/jqyl/jqylSettingMaterialCheck/selectByPid/${pid}`,
             method: 'post'
         })
     },
     addUpdataMaterialCheckedConfig(type,data){
        /**原料列表检验信息列表 */
        return service({
            url: `/adscm/operation/jqyl/jqylSettingMaterialCheck/${type}`,
            method: 'post',
            data
        })
     },
     outPutCheckedConfigParts(pid) {
         /**部件输出结果检测项配置列表 */
        return service({
            url: `/adscm/operation/jqbz/jqbzSettingOutCheck/selectByPid/${pid}`,
            method: 'post'
        })
     },
     addUpdateBzOutPutConfig(type,data) {
         /**新增修改部件输出结果检测项配置 insert-新增 update-修改*/
         return service({
             url: `/adscm/operation/jqbz/jqbzSettingOutCheck/${type}`,
             method: 'post',
             data
         })
     },
    addUpdatePartsInCheckConfig(type,data) {
        /**新增修改部件输入检测项配置  insert-新增 update-修改*/
        return service({
            url: `/adscm/operation/jqbz/jqbzSettingInCheck/${type}`,
            method: 'post',
            data
        })
    },
    partsIncheckConfigList(pid){
         /**部件输入检测项配置列表 */
         return service({
             url: `/adscm/operation/jqbz/jqbzSettingInCheck/selectByPid/${pid}`,
             method: 'post'
         })
    },
    finalOutPutConfigList(pid) {
         /**总装输出结果配置列表 */
         return service({
             url: `/adscm/operation/jqzz/jqzzSettingOutCheck/selectByPid/${pid}`,
             method: 'post'
         })
    },
    addUpdateOutPutConfig(type, data) {
          /**新增修改总装输入出结果配置  insert-新增 update-修改*/
          return service({
              url: `/adscm/operation/jqzz/jqzzSettingOutCheck/${type}`,
              method: 'post',
              data
          })
    }
}
